/**
 * Description: MaintainReportStatuAction.java
 * Copyright (c) 2008-2009  Neo. 
 * All Rights Reserved.
 * @version 1.0  Apr 13, 2009 7:39:31 PM 李萌（neolimeng@gmail.com）created
 */
package org.paradise.dms.web.action.maintainreport;

import java.util.List;

import net.sf.json.JSONArray;

import org.directwebremoting.annotations.RemoteProxy;
import org.paradise.dms.pojo.MaintainReportStatus;
import org.paradise.dms.services.MaintainReportStatusService;
import org.paradise.dms.web.action.DMSBaseAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * Description: Copyright (c) 2008-2009 Neo. All Rights Reserved.
 * 
 * @version 1.0 Apr 13, 2009 7:39:31 PM 李萌（neolimeng@gmail.com）created
 */
@RemoteProxy(name = "maintainReportStatusAction")
@Service
public class MaintainReportStatusAction extends DMSBaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3973364403180470946L;
	@Autowired
	@Qualifier("maintainReportStatuServiceImpl")
	private MaintainReportStatusService maintainReportService;

	private List<MaintainReportStatus> lmrs;

	public JSONArray getAllMaintainReportStatus() {
		lmrs = this.maintainReportService.getAllMaintainReportStatus();
		if (lmrs != null && lmrs.size() > 0) {
			JSONArray jsonarray = JSONArray.fromObject(lmrs);
			return jsonarray;
		}
		return null;
	}

	public MaintainReportStatusService getMaintainReportService() {
		return maintainReportService;
	}

	public void setMaintainReportService(MaintainReportStatusService maintainReportService) {
		this.maintainReportService = maintainReportService;
	}

	public List<MaintainReportStatus> getLmrs() {
		return lmrs;
	}

	public void setLmrs(List<MaintainReportStatus> lmrs) {
		this.lmrs = lmrs;
	}

}
